package com.smfx.yxt.view;

import java.util.List;

import com.smfx.yxt.common.Const;
import com.smfx.yxt.model.AttachmentList;
import com.smfx.yxt.model.ClassAlbum;
import com.smfx.yxt.model.ClassAlbumComment;
import com.smfx.yxt.wechat.utils.WechatGlobalMap;

public class ClassAlbumView extends ClassAlbum {

	private static final long serialVersionUID = 1161277156607706841L;
	
	private String headImgUrl;
	
	private List<AttachmentList> attachList;
	
	private List<ClassAlbumComment> commentList;

	public String getHeadImgUrl() {
		return headImgUrl;
	}

	public void setHeadImgUrl(String headImgUrl) {
		this.headImgUrl = headImgUrl;
	}

	public List<AttachmentList> getAttachList() {
		return attachList;
	}

	public void setAttachList(List<AttachmentList> attachList) {
		this.attachList = attachList;
	}

	public List<ClassAlbumComment> getCommentList() {
		return commentList;
	}

	public void setCommentList(List<ClassAlbumComment> commentList) {
		this.commentList = commentList;
	}
	
	public String getGradeText() {
		TermView view = (TermView) WechatGlobalMap.get(Const.CACHE_TERM).getValue();
		return view.getGradeName(super.getGrade());
	}
}
